<?php
require_once "InitController.php";
class Admin_InitController extends Zend_Action_Controller

{
	public function init()
    {
                if (Zend_Session::namespaceIsset('Zend_Auth') ){
                        $this->_authSession = new Zend_Session_Namespace('Zend_Auth');
                }
                
                $userModel = new Model_DbTable_User();
                $this->_user = $userModel->getUserInfo($this->_authSession->userId);
                                        
                if($this->_user['userGroup'] === "Administrator"){

            $this->view->editableUser = true;
									                        
                }
				else {
					$this->_helper->redirector('list', 'klacht');
				}
				
	}


}
